package org.idea.spring.aop.version2.interceptor;

import java.util.HashMap;
import java.util.Map;

/**
 * 拦截器的链路
 *
 * @Author linhao
 * @Date created in 10:43 上午 2021/5/16
 */
public class IMethodInterceptorChains {

    private static Map<String, IMethodInterceptor> iMethodInterceptorsMap = new HashMap();

    public IMethodInterceptor getMethodInterceptor(String adviceName) {
        return iMethodInterceptorsMap.get(adviceName);
    }

    public void put(String adviceName, IMethodInterceptor iMethodInterceptor) {
        iMethodInterceptorsMap.put(adviceName, iMethodInterceptor);
    }
}
